<template>
  <div>
    <p class="line-title">请选择用户地区</p>
    <div
      class="line"
      :style="select === 0 ? 'background: #eee' : ''"
      @click="handleClickZH"
    >
      <span>中国大陆</span>
      <van-icon name="arrow" size="22" color="#999" />
    </div>
    <div
      class="line"
      :style="select === 1 ? 'background: #eee' : ''"
      @click="handleClickEN"
    >
      <span>中国香港</span>
      <van-icon name="arrow" size="22" color="#999" />
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      select: -1,
    }
  },
  methods: {
    handleClickZH() {
      this.select = 0
      this.$router.push({name: 'uploadCard'})
    },
    handleClickEN() {
      this.select = 1
    },
  },
}
</script>

<style lang="scss" scoped>
.line-title {
  font-family: PingFang SC;
  font-weight: 400;
  color: #333333;
  text-align: left;
  padding: 30px 20px 20px 20px;
}
.line {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #eee;
  span {
    font-size: 16px;
    font-family: PingFang SC;
    color: #333;
    line-height: 20px;
  }
}
</style>
